package com.example.demo.dao;

import com.example.demo.entity.UserInfoTest;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface UserInfoTestRepository extends JpaRepository<UserInfoTest, Integer> {
    Optional<UserInfoTest> findByNameAndPassword(String name, String password);
    Optional <List<UserInfoTest>> getByNameAndPassword(String name, String password);
    UserInfoTest getById(int id);
}